//
//  ViewController.m
//  AlarmClock
//
//  Created by LF on 2017/4/26.
//  Copyright © 2017年 LF. All rights reserved.
//

#import "ViewController.h"
#import "LFClockListViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    NSArray *allLocalNotis = [UIApplication sharedApplication].scheduledLocalNotifications;
    
}

- (void)viewDidAppear:(BOOL)animated {
    NSArray *allLocalNotis = [UIApplication sharedApplication].scheduledLocalNotifications;
}

- (IBAction)jump:(id)sender {
    LFClockListViewController *listVc = [[LFClockListViewController alloc] init];
    [self.navigationController pushViewController:listVc animated:YES];
}
- (IBAction)cancelAllNotis:(id)sender {
    NSLog(@"取消所有本地通知");
    [[UIApplication sharedApplication] cancelAllLocalNotifications];
}

@end
